make a nested list flat python

34

def flatten(t):
    return [item for sublist in t for item in sublist]

Comments

Submit
0 Comments